-- GENERATED SPELL FOR [Greater Fleshbeast] --


function spell0_16596(pUnit, Event) --@Gaping Maw,n/a--
pUnit:FullCastSpellOnTarget(29935,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16596', 15600, 1)
end

function spell1_16596(pUnit, Event) --@Infectious Poison,n/a--
pUnit:FullCastSpellOnTarget(29939,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16596', 659, 1)
end

function Sorts_16596(pUnit, Event)
local choix_sorts_16596 = math.random(0, 1)
if choix_sorts_16596 == 0 then
pUnit:RegisterEvent('spell0_16596', 1, 1)
end
if choix_sorts_16596 == 1 then
pUnit:RegisterEvent('spell1_16596', 1, 1)
end
end

function mob16596_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16596', math.random(1500, 3000), 1)
end

function mob16596_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16596_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16596_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16596, 1, 'mob16596_Action')
RegisterUnitEvent(16596, 2, 'mob16596_Leave')
RegisterUnitEvent(16596, 3, 'mob16596_Kill')
RegisterUnitEvent(16596, 4, 'mob16596_Die')
